<?php
# Menu Version 0.1

function menu(){
	$varmenu = "";
	$sql = "SELECT "."menu, link"." FROM "."menu";
	$result = mysql_query ($sql);
    while($row = mysql_fetch_assoc($result))
	{
		$tempmenu = $varmenu;
		$varmenu = "<li><a href='".$row['link']."'><span>".$row['menu']."</span></a></li>";
		$varmenu = $tempmenu.$varmenu;
	}
	$menu = $varmenu;
	return $menu;
}
?>